#ifndef TASKDETAILDIALOG_H
#define TASKDETAILDIALOG_H

#include <QDialog>
#include <QStandardItemModel>

#include "data_bean.h"

namespace Ui {
class TaskDetailDialog;
}

class TaskDetailDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TaskDetailDialog(Task& task, QWidget *parent = 0);
    ~TaskDetailDialog();

private slots:
    void on_btn_upload_clicked();

    void on_btn_ok_clicked();

private:
    Ui::TaskDetailDialog *ui;
    Task task;
    QStandardItemModel* hand_in_model = NULL;

    void init();
    void update_table_view();
};

#endif // TASKDETAILDIALOG_H
